package com.song.druid.param;

import com.song.druid.api.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
public class PageQueryParam {
    @ApiModelProperty(value = "页码", example = "1")
    @Min(value = 1, message = "页码最小为1", groups = PageQuery.class)
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页条数", example = "10")
    @Min(value = 1, message = "每页条数最小为1", groups = PageQuery.class)
    private Integer pageSize = 10;
}
